<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:f="http://java.sun.com/jsf/core">
	
	<table style="width: 100%; border:0px;">
		<tr>
			<td style="width: 5%; text-align:left; border:0px;">
				<h:outputText value="Caixa do Dia: " />
			</td>
			<td style="width: 20%; text-align:left; border:0px;">
				<p:calendar value="#{fluxoCaixaManager.dataCaixa}" datePattern="dd/MM/yyyy" yearRange="#{segurancaManager.minDate}:#{segurancaManager.maxDate}" locale="pt"
					id="dataCaixa" navigator="true" readOnlyInputText="true">
					<p:ajax event="dateSelect" process=":form" update=":form" listener="#{fluxoCaixaManager.showCaixa}" />
				</p:calendar>
			</td>
			<td style="width:50%; border:0px;">
			</td>
			<td style="width:25%; text-align:right; border:0px;">
				<p:commandButton value="Fechar Caixa" action="#{fluxoCaixaManager.prepareSave}" 
					oncomplete="dlg_caixa.show();" update=":form_caixa" rendered="#{!fluxoCaixaManager.caixa.fechado}">
				</p:commandButton>
				<p:commandButton value="Reabrir Caixa" 
					oncomplete="dlg_reabrir_caixa.show();" update=":form_reabrir_caixa" rendered="#{fluxoCaixaManager.caixa.fechado}"/>
			</td>
		</tr>
	</table>
					
</html>